<?php if($_SESSION[user.online] == "1"){echo '<div style="position:absolute; right:9px; top: 9px; font-weight: bold; color:#FFF;"><a href="my-profile" class="toplinks">'.$_SESSION[user.name].' '.$_SESSION[user.surname].'</a> | <a href="manage" class="toplinks" target="_blank">Management</a> <a href="logout" class="toplinks">[X]</a></div>';}else{ ?>
<div style="position:absolute; right:9px; top: 4px; font-weight: bold; color:#FFF;">
	<form action="check" method="post"><input type="email" name="email" placeholder="E-Mail" class="login" /> <input type="password" name="password" placeholder="Password" class="login" /> <?php if($_GET[loginfail] == "1"){echo '<div id="dialog" title="Oops...">The logindetails you entered where incorrect. Please check your username and password!<br><br>Youre still getting problems? Ask for a new password at the "Forgot password" page.</div><input type="button" value=" " class="errorbutton" disabled="disabled" />'; }?> <input type="submit" value=" " class="loginbutton" /></form>
</div>
<?php } ?>